package cn.waqwb.test;


import cn.waqwb.s03.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Classname MyTest2
 * @Description TODO
 * @Date 2022/9/15 19:22
 * @Created by Administrator
 */
public class MyTest03 {
    @Test
    public void testStudent(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("s03\\applicationContext.xml");
        //取出Student对象
        Student student = (Student) ac.getBean("student");
        System.out.println(student);
    }
}
